package org.carabiner.harness;

import java.awt.Component;
import java.awt.Window;

/**
 * Holds static factory methods used for creating test harnesses
 * 
 * @author Ben Rady (benrady@gmail.com)
 * 
 */
public class HarnessFactory
{
  private HarnessFactory()
  {
  }

  public static Harness createHarness(Component component)
  {
    if (component instanceof Window)
    {
      return new WindowHarness((Window) component);
    }

    return new ComponentHarness(component);
  }
}
